package homework;

import java.util.ArrayList;
import java.util.Random;

public class Homework3QuickSort {

	public static void main(String[] args) {

		Random random = new Random();

		ArrayList<Integer> arr = new ArrayList<>();

		int n = random.nextInt(20) + 2;

		for (int i = 0; i < n; i++) {
			arr.add(random.nextInt(100));
		}

		System.out.println(arr);

		QuickSort.sort(arr);

		System.out.println(arr);

	}

}
